package com.stenio.fancat.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.annotations.Version;
import com.baomidou.mybatisplus.enums.IdType;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 用户账户表实体类
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("fc_user_account")
public class UserAccount extends BaseEntity {

	/** 序列化ID */
	private static final long serialVersionUID = -6273868495864409245L;

	/** 自增主键 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	@TableField("user_id")
	private Integer userId;
	@TableField("surplus_candy")
	private Integer surplusCandy;
	@Version
	@TableField("version")
	private Integer version;

	public static final String USER_ID = "user_id";
}
